import request from '@/utils/request'
import API from './constant'

const getBanners = () => {
  return request.get(API.TAB + '/1')
}

const getNavs = () => {
  return request.get(API.TABS)
}

const getCategory = id => {
  return request.get(API.TAB + '/' + id)
}

const getDetail = id => {
  return request.get(API.DETAILS + id)
}
export {
  getBanners,
  getNavs,
  getCategory,
  getDetail
}
